//package com.example.a7822.myapplication.shopcart.presenter;
//
//import android.content.Context;
//
//import com.example.a7822.myapplication.shopcart.SPShopManager;
//import com.example.a7822.myapplication.shopcart.beans.ShopBean;
//import com.example.a7822.myapplication.shopcart.common.Urls;
//import com.example.a7822.myapplication.shopcart.model.ShopModel;
//import com.example.a7822.myapplication.shopcart.model.ShopModelImpl;
////import com.example.a7822.myapplication.shopcart.view.GoodsViewImpl;
//import com.zhy.http.okhttp.OkHttpUtils;
//
//import java.util.ArrayList;
//
//public class ShopDetailPresenterImpl implements ShopDetailPresenter, ShopModelImpl.OnLoadShopDetailListener {
//
//
//    private Context mContent;
//    private ShopModel shopModel;
//
//    GoodsViewImpl goodsView ;
//
////    public GoodDetailPresenterImpl(){}
//    public ShopDetailPresenterImpl(GoodsViewImpl goodsView) {
//        this.goodsView = goodsView;
//        shopModel = new ShopModelImpl();
//    }
//
//    @Override
//    public void loadShopDetail(String shopID) {
//
//
////        OkHttpUtils.Param param1 = new OkHttpUtils.Param("shopId",shopID);
////        ArrayList<OkHttpUtils.Param> list = new ArrayList<>();
////        list.add(param1);
////
////        shopModel.loadShopDetail(Urls.GET_SHOP_INFO,list, this);
//    }
//
//    @Override
//    public void onLoadShopDetailSuccess(ShopBean shopBean) {
//        //加入shopMap
//        if (!SPShopManager.instance().getShopMap().containsKey(shopBean.getShopId()))
//            SPShopManager.instance().getShopMap().put(shopBean.getShopId(),shopBean);
//
//        //设置当前店铺信息
//        SPShopManager.instance().curShop = shopBean;
//
//        goodsView.showShopInfo();
//        goodsView.dismissProcessBar();
//    }
//
//    @Override
//    public void onLoadShopDetailFailure(String msg, Exception e) {
//        goodsView.dismissProcessBar();
//        goodsView.showErrorMsg();
//    }
//}
